package com.yanqu.road.server.cmd.activity.fivehero;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.FiveHeroProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.fivehero.FiveHeroModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_FIVEHERO_GET_WINNER_INFO_FROM_CROSS, desc = "")
public class CrossFiveHeroGetWinnnerInfoCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        FiveHeroProto.FiveHeroGetWinnerRespMsg respMsg = FiveHeroProto.FiveHeroGetWinnerRespMsg.parseFrom(packet.getBytes());
        player.getModule(FiveHeroModule.class).getWinnerInfo(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {
        if (ret != 0) {

        }
    }
}
